.xg-form input[type="text"],
.xg-form input[type="number"],
.xg-form input[type="password"],
.xg-form input[type="datetime-local"],
.xg-form input[type="date"],
.xg-form textarea,
.xg-form select {
    border: solid 1px #ccc;
    padding: 0.5rem;
    border-radius: 0.4rem;
    line-height: 1rem;
}

.xg-form .xg-form-item {
    display: flex;
    width: 100%;
    flex: 1;
}

.xg-form .xg-form-item input[type="text"],
.xg-form .xg-form-item input[type="number"],
.xg-form .xg-form-item input[type="password"],
.xg-form .xg-form-item input[type="datetime-local"],
.xg-form .xg-form-item input[type="date"],
.xg-form .xg-form-item textarea,
.xg-form .xg-form-item select {
    width: 100%;
    flex: 1;
}

.xg-form .xg-form-item button {
    min-height: unset;
    height: 2.3rem;
    border-radius: 0.4rem;
}

.xg-form input[type="text"],
.xg-form input[type="number"],
.xg-form input[type="password"],
.xg-form input[type="datetime-local"],
.xg-form input[type="date"],
.xg-form select {
    height: 2.3rem;
}

.xg-form .xg-label-radio,
.xg-form .xg-label-checkbox {
    display: inline-block;
    margin: 0.5rem 0.5rem 0 0;
    padding: 0.5rem;
    padding-right: 0.5rem;
    height: 1.2em;
    line-height: 1.25em;
    border: solid 1px #ccc;
    border-radius: 0.4rem;
    cursor: pointer;
    background: #fff;
    box-sizing: content-box;
}

.xg-form-item .xg-form-label {
    margin: unset;
}

.xg-form-item .xg-upload-button {
    margin-left: 0.5rem;
}

.xg-form-col-item .xg-form-label ~ div,
.xg-form-col-item .xg-form-label ~ input,
.xg-form-col-item .xg-form-label ~ textarea {
    margin-top: 0.5rem;
}

.xg-form-row-item .xg-form-label ~ div,
.xg-form-row-item .xg-form-label ~ input,
.xg-form-row-item .xg-form-label ~ textarea {
    margin-left: 0.5rem;
    margin-bottom: 0;
}

.xg-form .xg-label-radio:last-child,
.xg-form .xg-label-checkbox:last-child {
    margin-right: 0;
}

.xg-form .xg-label-radio input[type="radio"],
.xg-form .xg-label-checkbox input[type="checkbox"] {
    display: block;
    float: left;
    width: 1rem;
    height: 1rem;
    margin: 1px 2px;
    cursor: pointer;
}

.xg-form input[type="color"] {
    display: block;
    border: 0;
    width: calc(3rem + 10px);
    margin: -5px;
    height: calc(2.5rem + 10px);
}

.xg-form .xg-color-swatch {
    width: 3rem;
    height: 2.3rem;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
}

.xg-form textarea {
    line-height: 1.3rem;
}